import api from "@/libs/request";

/**
 * 获取直播列表
 * @param data
 */
export const getLiveList = (data: any) => {
  return api.get("/live/manager/get/List", data);
};

/**
 * 更新直播信息
 * @param data
 */
export const updateLanuch = (data: any) => {
  return api.get("/live/manager/update/launchArea", data);
};

export const reFreshList = (data: any) => {
  return api.get("/live/manager/get/weChatList", data);
};

/**
 * 获取商品码
 */
export const getImgCode = (data: any) => {
  return api.post("/platform/mini-info/wxa/getwxacode", data);
};

/**
 * 直播排序
 * @param data
 */
export const sort = (data: any) => {
  return api.post("/live/manager/update/sort", data);
};
